package com.g8.pethospitallearnbackend.entity;

import java.io.Serializable;

public class Department implements Serializable {
    private String departId;

    private String departName;

    private String devicePic;

    private String staffId;

    private String departDesc;

    private String departDevice;

    private static final long serialVersionUID = 1L;

    public String getDepartId() {
        return departId;
    }

    public void setDepartId(String departId) {
        this.departId = departId;
    }

    public String getDepartName() {
        return departName;
    }

    public void setDepartName(String departName) {
        this.departName = departName;
    }

    public String getDevicePic() {
        return devicePic;
    }

    public void setDevicePic(String devicePic) {
        this.devicePic = devicePic;
    }

    public String getStaffId() {
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }

    public String getDepartDesc() {
        return departDesc;
    }

    public void setDepartDesc(String departDesc) {
        this.departDesc = departDesc;
    }

    public String getDepartDevice() {
        return departDevice;
    }

    public void setDepartDevice(String departDevice) {
        this.departDevice = departDevice;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", departId=").append(departId);
        sb.append(", departName=").append(departName);
        sb.append(", devicePic=").append(devicePic);
        sb.append(", staffId=").append(staffId);
        sb.append(", departDesc=").append(departDesc);
        sb.append(", departDevice=").append(departDevice);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Department other = (Department) that;
        return (this.getDepartId() == null ? other.getDepartId() == null : this.getDepartId().equals(other.getDepartId()))
            && (this.getDepartName() == null ? other.getDepartName() == null : this.getDepartName().equals(other.getDepartName()))
            && (this.getDevicePic() == null ? other.getDevicePic() == null : this.getDevicePic().equals(other.getDevicePic()))
            && (this.getStaffId() == null ? other.getStaffId() == null : this.getStaffId().equals(other.getStaffId()))
            && (this.getDepartDesc() == null ? other.getDepartDesc() == null : this.getDepartDesc().equals(other.getDepartDesc()))
            && (this.getDepartDevice() == null ? other.getDepartDevice() == null : this.getDepartDevice().equals(other.getDepartDevice()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDepartId() == null) ? 0 : getDepartId().hashCode());
        result = prime * result + ((getDepartName() == null) ? 0 : getDepartName().hashCode());
        result = prime * result + ((getDevicePic() == null) ? 0 : getDevicePic().hashCode());
        result = prime * result + ((getStaffId() == null) ? 0 : getStaffId().hashCode());
        result = prime * result + ((getDepartDesc() == null) ? 0 : getDepartDesc().hashCode());
        result = prime * result + ((getDepartDevice() == null) ? 0 : getDepartDevice().hashCode());
        return result;
    }
}